﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LittleBoxes
{
    /// <summary>
    /// Ignore
    /// </summary>
    public partial class Edge : Control
    {
        public Point Start { get; set; }
        public Point End { get; set; }
        public Edge()
        {
            InitializeComponent();
            Start = new Point(100, 100);
            End = new Point(200, 200);
        }

        protected override void OnPaint(PaintEventArgs pe)
        {
            base.OnPaint(pe);
            Graphics g = this.Parent.CreateGraphics();
            g.DrawLine(Pens.Black, Start, End);
        }
    }
}
